<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>动态设置网页的标题栏</title>
</head>

<body>
  <script type="text/javascript">
   var a=1;
  function title(){
    a++;
    console.log(a);
    if( a%2 == 0){
      document.title = '个人';
    }else{
      document.title = '品牌';
    }
    setTimeout('title()', 1000 );
  }
  title();  
  </script>
</body>

</html>